import request from '@/utils/request'

// 默认导出
// export default function() {
//   return request({
//     url: '/company/department',
//     method: 'get'
//   })
// }
// 按需导出
// 封装发送请求获取各类数据的接口
// 获取部门信息接口
export const getDpmRequest = () => request.get('/company/department')
// 增加部门信息接口
export const addDepartmentRequest = data => request.post('/company/department', data)
// 根据id查询部门信息接口
export const getDeparmentByIdRequest = id => request.get(`/company/department/${id}`)
// 根据id更新部门信息接口
export const updateDepartmentByIdRequest = data => request.put(`/company/department/${data.id}`, data)
// 根据id删除部门信息接口
export const deleteDepartByIdRequest = id => request.delete(`/company/department/${id}`)
